package com.security.it.authentication.common;

import com.security.it.core.enums.ValidateCodeType;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 校验码处理器，封装不同校验码的处理逻辑
 */
public interface ValidateCodeProcessor {

    /**
     * 创建校验码
     * @param request
     */
    void create(ServletWebRequest request, ValidateCodeType type) throws Exception;
}
